package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class AdminInviteRequest extends BaseTokenRequest {

    public static final String PATH = BaseRequest.PATH + "api/AdminSend_Invitation";

    private String invitePhone;

    private int babyId;

    private String member;

    public String getInvitePhone() {
        return invitePhone;
    }

    public void setInvitePhone(String invitePhone) {
        this.invitePhone = invitePhone;
    }

    public int getBabyId() {
        return babyId;
    }

    public void setBabyId(int babyId) {
        this.babyId = babyId;
    }

    public String getMember() {
        return member;
    }

    public void setMember(String member) {
        this.member = member;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        AdminInviteRequestBody body = new AdminInviteRequestBody();
        body.setPhone(getPhone());
        body.setToken(getToken());
        body.setInvitePhone(getInvitePhone());
        body.setBabyId(getBabyId());
        body.setMember(getMember());
        return body;
    }

    private class AdminInviteRequestBody extends BaseTokenRequestBody {

        @SerializedName("BeInviteMobilePhone")
        private String invitePhone;

        @SerializedName("BabyID")
        private int babyId;

        @SerializedName("UserMemberName")
        private String member;

        private AdminInviteRequestBody() {
            setSv(BaseRequestConfig.SV_ADMIN_INVITE);
        }

        public String getInvitePhone() {
            return invitePhone;
        }

        public void setInvitePhone(String invitePhone) {
            this.invitePhone = invitePhone;
        }

        public int getBabyId() {
            return babyId;
        }

        public void setBabyId(int babyId) {
            this.babyId = babyId;
        }

        public String getMember() {
            return member;
        }

        public void setMember(String member) {
            this.member = member;
        }
    }
}
